﻿@import "../_theme";

#page-wraper {
    padding:5px 5px 6.5rem 5px;
    height:100%;
    overflow-y:auto;
}

#page-head {
    width: 100%;
}

#page-title {
    color: $ClrTheme;
    margin: 10px 0;

    & > i {
        font-size: 5rem;
        float: left;
        margin-right: 10px;
    }

    & > h6 {
        color: lighten($ClrThemeTxt,40);
    }
}


.field-title {
    font-size: 80%;
    color: lighten($ClrThemeTxt,30);
}

.auto-full-height {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
}

.v-center-wraper {
    display: table;
    height: 100%;
    width: 100%
}

#ord-head {
    background-color: $ClrMsg;
    border: 1px solid $ClrMsgBorder;
    padding: 5px;
}

.dlv-steps {
    position: absolute;
    right: 1px;
    top: -4px;

    & > .ds-step {
        border: 1px solid $ClrOk;
        color: $ClrOk;
        border-radius: 2px;
        float: right;
        margin: 3px;
        padding: 2px 5px;

        &.fail {
            color: $ClrImportant;
            border-color: $ClrImportant;
        }

        &.undo {
            color: $ClrThemeTxt;
            border-color: $ClrThemeTxt;
        }
    }
}

.Tabs {
    font-weight: bold;
    color: lighten($ClrThemeTxt,20);

    & > span {
        padding: 1rem 2rem;
        display: inline-block;

        &.active {
            //background-color: $ClrThemeHotTxt;
            color: $ClrTheme;
            //box-shadow: 0 0 5px 0 $ClrTheme;
        }
    }

    & > .tab-hover {
        border: none;
        height: 100%;
        background-color: white;
        top: 0;
        z-index: -1;
        box-shadow: 0px 5px 0px 0px white, 0 0 3px 0 $ClrTheme;
    }
}

.ord-view {
    min-height: 30rem;
    height: auto;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        box-shadow: 0 0 3px 0 $ClrTheme;
        z-index: -2;
        background-color: white;
    }

    & .info-tip{
        width:auto;
        padding:0 1rem;
        margin-left:1rem;
    }
}

#dlv-items {
    &>li{
        padding:2px;
        margin:5px 0;
    }
}

.di-info{

}
.di-count{
    padding:.5rem 1rem;
    text-align:right;
}
.di-dlv-count{
    font-size:3rem;
    color:$ClrTheme;
    &.part{
        color:$ClrImportant;
    }
}

.dlv-detail {
    margin:2.5rem 0 1rem 0;
}
.dlv-remark {
    width: 100%;
    min-height:6rem;
    padding: 0.5rem;
    margin:0.5rem 0 1rem 0;
    background-color:$ClrDisableBk;
    border:1px solid;
    z-index:110;
}


#rcv-editor {
    width: 80%;
    height: auto;
    background-color: white;
    box-shadow: 0 0 5px 0 $ClrTheme;
    padding: 1rem;
    display:none;
}

.item-counting-view {
    & > div {
        & > input {
            height: 4rem;
            line-height: 4rem;
            width: 100%;
            margin-bottom:10px;
        }

        &  textarea {
            height:12rem;
            line-height: 2.4rem;
            resize:none;
            width: 100%;
            overflow:auto;
        }
    }
}

#rcv-remarks {
    position: absolute;
    width: 100%;
    bottom: 0;
    display: block;
    padding: 5px;
    cursor:pointer;
    &>span{
        border:1px solid $ClrControllerBk;
        background-color:$ClrDisableBk;
        padding:2px 4px;
        margin:1px;
        float:left;
        &.slcted{
            border:1px solid $ClrTheme;
            color:$ClrTheme;
        }
    }
}

#dlv-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6rem;
    line-height: 6rem;
    text-align: center;
    background-color: $ClrControllerBk;
    box-shadow: 0 0 4px 0;
    &>.warning-tip{
        line-height:initial;
        height:6rem;
    }
}

#qc-editor {
    background-color: white;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 100%;
    display:none;
    &.active {
        display:block;
        left: 0;
        transition: all ease-out .5s;
    }
}

#qc-remark {
    width: 100%;
    height: 8rem;
}
#qc-tags {
    position: absolute;
    width: 100%;
    bottom: 0;
    display: block;
    padding: 5px;
    cursor: pointer;

    & > span {
        border: 1px solid $ClrControllerBk;
        background-color: $ClrDisableBk;
        padding: 2px 4px;
        margin: 1px;
        float: left;

        &.slcted {
            border: 1px solid $ClrTheme;
            color: $ClrTheme;
        }
    }
}
.qc-img {
    position: relative;
    width: 8rem;
    height: 8rem;
    box-shadow: 0 0 2px 0 gray;
    background-size: cover;
    float: left;
    margin-right: 10px;

    &>img{
        width:100%;
        height:100%;
    }

    &.uploading {
        &::before {
            position: absolute;
            content: ' ';
            top: 0;
            left: 0;
            width: 8rem;
            height: 8rem;
            background-color: black;
            opacity: .7;
            background-image: url('/UI/imgs/loading-9.gif');
            background-size: cover;
            background-position: center;
        }
    }

    & > .btn-remove {
        font-size: 2rem;
        position: absolute;
        right: -10px;
        top: -5px;
        color: $ClrImportant;
    }
}
#qc-img-wraper{
    margin:10px;
    &::after{
        content:'';
        display:block;
        clear:both;
    }
}
#qc-img-slctor {
    border: 1px dashed black;
    text-align: center;
    padding: .5rem 0;

    & > i {
        font-size: 6rem;
        display:block;
    }
}

#qc-editor-actions{
    text-align:center;
    margin:10px 0;
    &>button{
        margin:5px 1rem;
    }
}

#rcv-processing {
    background-color: white;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 100%;
    display: none;
    text-align: center;

    &.active {
        display: block;
        left: 0;
        transition: all ease-out .5s;
    }
}
.process {
    margin-bottom: 1rem;
    text-align:left;
    padding:0 2rem;
    &.ok {
        & > h4 {
            color: $ClrOk;
        }
    }

    &.fail {
        & > h4 {
            color: $ClrErr;
        }
    }
}